package cn.getech.data.development.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 *      sap数据源参数配置详情
 * </p>
 *
 * @author hqz
 * @since 2019-10-15
 */
@Data
@Accessors(chain = true)
@TableName("bdp_sap_connect_field")
public class SapConnectFieldDb implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * sap连接参数配置id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 数据源配置id
     */
    @TableField("connect_id")
    @NotBlank(message = "数据源配置id不可为空")
    private Integer connectId;

    /**
     * rfc函数
     */
    @TableField("rfc_func")
    @NotBlank(message = "rfc函数不可为空")
    private String rfcFunc;

    /**
     * 输入参数表名
     */
    @TableField("input_table_name")
    private String inputTableName;

    /**
     * 输出参数表名
     */
    @TableField("output_table_name")
    private String outputTableName;

    /**
     * sap输入参数
     */
    @NotBlank(message = "输入参数不可为空")
    @TableField(value = "input_params",strategy = FieldStrategy.IGNORED)
    private String ainputParams;

    /**
     * sap输出参数
     */
    @TableField(value ="output_params")
    @NotBlank(message = "输出参数不可为空")
    private String aoutputParams;

    @TableField("isgroup")
    private Integer isGroup;

    @TableField("group_name")
    private String groupName;

    @TableField("r3_name")
    private String r3Name;

    @TableField("sysnr")
    private String sysnr;

    @TableField("lang")
    private String lang;

}
